package com.itheima.log.domain;

import java.util.Date;

public class Log {
    private static final long serialVersionUID = 1L;

    //主键
    private int id;
    //操作类型
    private String type;
    //执行的方法名
    private String method;
    //执行参数
    private String param;
    //执行异常
    private String error;
    //操作说明
    private String desc;
    //创建时间
    private Date createDate = new Date();

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getMethod() {
        return method;
    }

    public void setMethod(String method) {
        this.method = method;
    }

    public String getParam() {
        return param;
    }

    public void setParam(String param) {
        this.param = param;
    }

    public String getError() {
        return error;
    }

    public void setError(String error) {
        this.error = error;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    @Override
    public String toString() {
        return "Log{" +
                "id=" + id +
                ", type='" + type + '\'' +
                ", method='" + method + '\'' +
                ", param='" + param + '\'' +
                ", error='" + error + '\'' +
                ", desc='" + desc + '\'' +
                ", createDate=" + createDate +
                '}';
    }
}